package com.software.messagecenter.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class MessageDTO {
    private String messageId;
    private String senderId;
    private String receiverId;

    private Student student;
    private Teacher teacher;

    private String messageDetail;

    private int type;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;
}
